package com.itheima.service;

import com.itheima.api.OmsCompanyAddressApi;
import com.itheima.dto.OmsCompanyAddressDto;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

/**
 * @author 芝士雪豹
 * @create 2022/10/13/19:18
 */
@Service
public class OmsCompanyAddressService {
    @DubboReference
    private OmsCompanyAddressApi omsCompanyAddressApi;

    /**
     * 获取所有收货地址
     * @return
     */
    public OmsCompanyAddressDto findAllOrder() {
        OmsCompanyAddressDto dto = omsCompanyAddressApi.findAllOrder();
        return dto;
    }
}
